<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_validator = $show_scroll = $show_dialog = 1;
include $this->admin_tpl('header', 'admin');

?>
<h3 style="padding-left: 20px;padding-top: 10px">
	<?php echo $liveinfo['title']?>——动态
	<a href="?m=subject_live&c=manage&a=init" style="font-size:14px;color: #0000FF"><em>返回上一级</em></a>
</h3>

<div class="subnav">

</div>
<div class="pad-lr-10">
	<form name="searchform" action="" method="get">
		<input type="hidden" value="subject_live" name="m">
		<input type="hidden" value="manage" name="c">
		<input type="hidden" value="dynamics_list" name="a">
		<?php if(isset($_GET['id'])){?>
			<input type="hidden" value="<?=$_GET['id']?>" name="id">
		<?php }?>
		<table width="100%" cellspacing="0" class="search-form">
			<tbody>
			<tr>
				<td>
					<div class="explain-col">
						<?php echo L('user_name');?>：<input name="name" type="text" value="<?php if(isset($_GET['name'])) {echo $_GET['name'];}?>"
										 class="input-text" />
						<input type="submit" name="search"  class="button" value="<?php echo L('search')?>" />
					</div>
				</td>
			</tr>
			</tbody>
		</table>
	</form>

	<form name="myform" id="myform" action="" method="post" onsubmit="return confirm('<?php echo L('confirm')?>')">
		<div class="table-list">
			<table width="100%">
				<thead>
				<tr>
					<th width="30">ID</th>
					<th width="30"><?php echo L('user_name');?></th>
					<th width="220"><?php echo L('content');?></th>
					<th width="60"><?php echo L('file_count')?></th>
					<th width="60"><?php echo L('phone_model')?></th>
					<th width="120"><?php echo L('ip');?></th>
					<th width="100"><?php echo L('create_time');?></th>
					<th width="100"><?php echo L('tag');?></th>
				</tr>
				</thead>
				<tbody>
				<?php
				if(!empty($info)){
					if(is_array($info)) {
	
						foreach ($info as $k=> $r) {
							?>
							<tr>
								<td align="center"><?php echo $r['aid']?></td>
								<td align='center'><?php echo $r['user_name']?></td>
								<td align='center' ><?php if(!empty($r['content'])){echo $r['content'];}else{echo '<font color="red">未设置</font>';}?></td>
								<td align='center' ><?php echo $r['file_count']?></td>
								<td align='center' ><?php echo $r['phone_model']?></td>
								<td align='center'><?php if(!empty($r['ip'])){echo $r['ip'];}else{echo "<font color='red'>未设置</font>";}?></td>
								<td align='center'><?php echo $r['create_time'];?></td>
								<td align='center'><?php echo $r['tag'];?></td>
							</tr>
						<?php }
					}
				}else{
				?>
					<tr><td colspan='9' style='color:red;font-size:18px;text-align:center;'><span>暂无数据！</span></td></tr>
				<?php }?>
				</tbody>
			</table>
			<div id="pages"><?php echo $pages;?></div>
		</div>
	</form>
</div>
</body>
</html>